package jbp.model;

import java.util.List;

public class JbpPageResult<T> {
    private Integer count;

    private String code;

    private String msg;

    private List<T> data;

    public JbpPageResult(Integer count, List<T> data){
        this.count = count;
        this.data = data;
        this.code = "0";
        this.msg = "成功！";
    }

    public void setCount(int count){
        this.count = count;
    }

    public int getCount(){
        return this.count;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getCode(){
        return this.code;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public String getMsg(){
        return this.msg;
    }

    public void setData(List<T> data){
        this.data = data;
    }

    public List<T> getData(){
        return this.data;
    }
}
